package com.lovo.game.imp;

/**
 * 角色
 */
public abstract class Role {

    //名字
    private String name;

    //等级
    private int level;



    public Role() {
    }

    public Role(String name, int level) {
        this.name = name;
        this.level = level;
    }

    public void selfIntroduce(){
        System.out.println("我是" + getName());
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

}
